package com.yangming.mapper;

import com.yangming.model.User;

public interface UserMapper {
    /**
     *
     * @mbggenerated 2018-09-07
     */
    int deleteByPrimaryKey(Integer id);

    /**
     *
     * @mbggenerated 2018-09-07
     */
    int insert(User record);

    /**
     *
     * @mbggenerated 2018-09-07
     */
    int insertSelective(User record);

    /**
     *
     * @mbggenerated 2018-09-07
     */
    User selectByPrimaryKey(Integer id);

    /**
     *
     * @mbggenerated 2018-09-07
     */
    int updateByPrimaryKeySelective(User record);

    /**
     *
     * @mbggenerated 2018-09-07
     */
    int updateByPrimaryKey(User record);
    /**
     * 根据openId查询用户
     */
    User selectUserByOpenId(String openId);
}